package caches

import "time"

type facadeConfig struct {
	expiration time.Duration

	keyPrefix string //key前缀
}

type CacheOpt func(*facadeConfig)

func OptionCacheExpireTime(t time.Duration) CacheOpt {
	return func(config *facadeConfig) {
		config.expiration = t
	}
}
